package cn.jcby.app.lebu.service;

import cn.jcby.app.lebu.controller.req.BasicListReq;
import cn.jcby.app.lebu.entity.UserMessageEntity;
import cn.jcby.app.lebu.enums.MessageTypeEnum;
import cn.jcby.app.lebu.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.scheduling.annotation.Async;

import java.math.BigDecimal;

/**
 * 消息
 *
 * @author lht
 * @email 
 * @date 2023-12-07 15:13:35
 */
public interface UserMessageService extends IService<UserMessageEntity> {

    PageUtils queryPage(BasicListReq params);

    void add(UserMessageEntity userMessage) ;

    void updateBy(UserMessageEntity userMessage) ;

    void read(Long id);
    @Async
    void addRecord(String sendUserId,String receiverUserId, MessageTypeEnum inviteTaPublish, BigDecimal...args);
}

